package classloader;

public class MyClassLoader {

    public static class Hello{
        static{
            System.out.println("静态代码块");
        }
    }

    public static void main(String[] args) {
        ClassLoader classLoader = ClassLoader.getSystemClassLoader();
        String className = MyClassLoader.class.getName()+"$Hello";
        System.out.println(className);
        try {
            Class<?> cls = classLoader.loadClass(className);
        } catch (ClassNotFoundException e) {
            e.printStackTrace();
        }
    }
}


